import request from '@/utils/request'

// 查询项目安全交底报告列表
export function listSafety(query) {
  return request({
    url: '/cbs/project/safety/list',
    method: 'get',
    params: query
  })
}

// 查询项目安全交底报告详细
export function getSafety(id) {
  return request({
    url: '/cbs/project/safety/' + id,
    method: 'get'
  })
}

// 新增项目安全交底报告
export function addSafety(data) {
  return request({
    url: '/cbs/project/safety',
    method: 'post',
    data: data
  })
}

// 修改项目安全交底报告
export function updateSafety(data) {
  return request({
    url: '/cbs/project/safety',
    method: 'put',
    data: data
  })
}

// 删除项目安全交底报告
export function delSafety(id) {
  return request({
    url: '/cbs/project/safety/' + id,
    method: 'delete'
  })
}
